/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.AsksFacade;
import org.ipti.br.tag.entity.Asks;
import javax.inject.Inject;
import java.util.List;
import javax.ejb.Stateless;

/**
 *
 * @author ipti
 */
@Stateless
public class AsksBO {

    @Inject
    private AsksFacade asksDAO;

    public AsksFacade getAsksDAO() {
        return asksDAO;
    }

    public void create(Asks ask) {
        getAsksDAO().create(ask);
    }

    public void edit(Asks ask) {
        getAsksDAO().edit(ask);
    }

    public void remove(Asks ask) {
        getAsksDAO().remove(ask);
    }

    public Asks find(Object id) {
        return getAsksDAO().find(id);
    }

    public List<Asks> findAll() {
        return getAsksDAO().findAll();
    }

    public void editForSynchronization(Asks asks) {
        getAsksDAO().editForSynchronization(asks);
    }

    public List<Asks> asksPerQuestion(Long questionID) {
        return getAsksDAO().asksPerQuestion(questionID);
    }

    public List<Asks> findAllOrder() {
        return getAsksDAO().findAllOrder();
    }
}
